package org.xteam.camllight;

public class CodePointer {

	private CodeStream codeStream;
	private int pc;

	public CodePointer(CodeStream codeStream, int pc) {
		this.codeStream = codeStream;
		this.pc = pc;
	}
	
	public int pc() {
		return pc;
	}
	
	@Override
	public String toString() {
		return String.valueOf(pc);
	}

	public CodeStream getCodeStream() {
		codeStream.setPc(pc);
		return codeStream;
	}

}
